<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/react.development.js"></script>
    <script src="../../js/react-dom.development.js"></script>
</head>
<body>

    <div id="app"></div>
    <script>
        let app = document.querySelector("#app");

        let root = ReactDOM.createRoot(app);
        //root.render("<div style='color: red;'></div>")
        // 创建虚拟dom
        let element = React.createElement("h2",{"title":"hi"},"hello word")
        root.render(element)
    </script>
</body>
</html>
